﻿// 游戏配置表
let AREA_ID = 2;
let serverid = 2001;
let SERVER_NAME = "二区";



// 游戏    内网 | 外网 
let NetType = 'OutSide'; // InSide or OutSide
let NET_IP = '192.168.2.208'; // 外网ip地址
let FAKE_IP = '192.168.2.208';
let PORT = require("./basePort").PORT.Ser01 - 1001 + serverid;
let HTTP_PORT = PORT - 100;
let CLI_PORT = (PORT - 2001) + serverid;
let DB_PORT = require("./basePort").PORT.DB;

// 网关服配置
let GATE_IP = LOCAL_IP;
let GATE_PORT = require("./basePort").PORT.WangGuan

console.log("被加载了")

if (NetType == 'InSide') {
    FAKE_IP = LOCAL_IP;
    GATE_IP = LOCAL_IP;
    NET_IP = LOCAL_IP;
}

exports.DB = {
    DB_PORT: DB_PORT,
};

exports.CLI = {
    PORT: CLI_PORT,
};

exports.GameConfig = {
    HOST: NET_IP,
    IP: NET_IP,
    FAKE: FAKE_IP,
    PORT: PORT,

    GATE_IP: GATE_IP,
    GATE_PORT: GATE_PORT,
};

exports.HTTP = {
    HOST: LOCAL_IP,
    IP: NET_IP,
    LOCAL: LOCAL_IP,
    PORT: HTTP_PORT,
};

global.NETTYPE = NetType;
global.SERVER_ID = serverid;
global.SERVER_NAME = SERVER_NAME;
